/**
* @fileOverview 菜单管理接口
* @author wind-lc
* @version 1.0
*/
import { post, get } from '@/request/http'
// 新获取菜单列表
const getHnResourceList = params => {
  return get(process.env.VUE_APP_CDHNTECH_API + '/hnResource/getHnResourceList', params)
}
// 获取菜单列表
const getPageHnResource = params => {
  return post(process.env.VUE_APP_CDHNTECH_API + '/hnResource/getPageHnResource', params)
}
// 新增菜单
const insertSelective = params => {
  return post(process.env.VUE_APP_CDHNTECH_API + '/hnResource/insertSelective', params)
}
// 编辑菜单
const updateByPrimaryKeySelective = params => {
  return post(process.env.VUE_APP_CDHNTECH_API + '/hnResource/updateByPrimaryKeySelective', params)
}
// 删除菜单
const deleteByPrimaryKey = params => {
  return post(process.env.VUE_APP_CDHNTECH_API + '/hnResource/deleteByPrimaryKey', params)
}
// 批量删除菜单
const deleteBatch = params => {
  return post(process.env.VUE_APP_CDHNTECH_API + '/hnResource/deleteBatch', params)
}
export { getPageHnResource, insertSelective, updateByPrimaryKeySelective, deleteByPrimaryKey, deleteBatch, getHnResourceList }
